package com.cropdoctor.model.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

@ApiModel(value = "FeedBackPo",description = "用户反馈数据")
@TableName("feed_back")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FeedBackPo {
    @TableId(type = IdType.AUTO)
    private Long id; //主键id
    @ApiModelProperty(value = "用户id",required = true,example = "1" )
    private Long userId; //用户id
    @ApiModelProperty(value = "用户反馈信息内容",required = true,example = "做的不错")
    private String content; //用户反馈信息内容
    @ApiModelProperty(value = "用户提交反馈时间",required = true,example = "2024-02-04 17:02:48")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createDateTime; //用户提交反馈时间
    @ApiModelProperty(value = "用户修改反馈时间",required = false,example = "2024-02-05 18:05:45" )
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateDateTime; //用户修改反馈时间
}
